# Description: Uygulamaların bir menüyü Unity Menü çubuğuna vermesine izin veren bir kütüphane (Gtk2 kitaplığı).
# URL: https://launchpad.net/libappindicator
# Packager: milisarge
# Depends on: gtk2 glib gnome-doc-utils libindicator-gtk2 libdbusmenu-gtk2 libdbusmenu-glib gobject-introspection vala python-gtk python-gobject2 dbus-glib

run=(libindicator-gtk2 libdbusmenu-gtk2 libdbusmenu-glib)

name=libappindicator-gtk2
version=12.10.0
release=1

source=(http://launchpad.net/libappindicator/${version%.*}/$version/+download/libappindicator-$version.tar.gz)

build() {

  export CFLAGS+=" -Wno-error=deprecated-declarations"
  cd libappindicator-$version
  sed -i 's|/cli/|/mono/|' bindings/mono/{appindicator-sharp-0.1.pc.in,Makefile.in}

  autoreconf -vfi

  ./configure --prefix=/usr        \
              --sysconfdir=/etc    \
              --localstatedir=/var \
              --disable-static     \
              --disable-{gtk-doc-html,mono-test,static,tests} \
              --with-gtk=2
  make -j1
  make -j1 DESTDIR=$PKG install
}

